package bacoopc.persistencia;

import java.sql.ResultSet;
import java.sql.SQLException;

public class Teste {

	/**
	 * @param args
	 */
	public static void main(String[] args) 
	{
		PersistenciaAlgoritmo pa = new PersistenciaAlgoritmo();
		ResultSet rs = pa.consultarAlgoritmos();
		
		try {
			while(rs.next())
			{
				int i = rs.getInt("ID");
				String st1 = rs.getString("Nome");
				String st2 = rs.getString("Caminho");
				
				System.out.println(i+" - "+ st1 +" - "+ st2);
			}
		} catch (SQLException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}

	}

}
